package com.dupt.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dupt.common.annotation.Excel;
import com.dupt.common.core.domain.BaseEntity;

/**
 * 维保信息对象 dupt_material_maintenance
 * 
 * @author zhuanyu.sun
 * @date 2025-07-22
 */
public class MaterialMaintenance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维保ID */
    private Long maintenanceId;

    /** 仪器ID */
    @Excel(name = "仪器ID")
    private Long productLibraryId;

    /** 维保内容 */
    @Excel(name = "维保内容")
    private String maintenanceContent;

    /** 维保人 */
    @Excel(name = "维保人")
    private String maintenanceBy;

    /** 维保日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维保日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceTime;

    /** 附件（存放维保后的文件） */
    @Excel(name = "附件", readConverterExp = "存=放维保后的文件")
    private String accessory;

    public void setMaintenanceId(Long maintenanceId) 
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId() 
    {
        return maintenanceId;
    }

    public void setProductLibraryId(Long productLibraryId)
    {
        this.productLibraryId = productLibraryId;
    }

    public Long getProductLibraryId()
    {
        return productLibraryId;
    }

    public void setMaintenanceContent(String maintenanceContent) 
    {
        this.maintenanceContent = maintenanceContent;
    }

    public String getMaintenanceContent() 
    {
        return maintenanceContent;
    }

    public void setMaintenanceBy(String maintenanceBy) 
    {
        this.maintenanceBy = maintenanceBy;
    }

    public String getMaintenanceBy() 
    {
        return maintenanceBy;
    }

    public void setMaintenanceTime(Date maintenanceTime) 
    {
        this.maintenanceTime = maintenanceTime;
    }

    public Date getMaintenanceTime() 
    {
        return maintenanceTime;
    }

    public void setAccessory(String accessory) 
    {
        this.accessory = accessory;
    }

    public String getAccessory() 
    {
        return accessory;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceId", getMaintenanceId())
            .append("productLibraryId", getProductLibraryId())
            .append("maintenanceContent", getMaintenanceContent())
            .append("maintenanceBy", getMaintenanceBy())
            .append("maintenanceTime", getMaintenanceTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("accessory", getAccessory())
            .toString();
    }
}
